package com.jy.rhin.model.body.zhuanzhenjl;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Getter;
import lombok.Setter;

/**
 * 既往史
 */
@Getter
@Setter
public class JiWangShi {

    /**
     * 既往疾病史描述
     */
    @XPath(path = "/entry/observation/code[@code='DE02.10.026.00']/../value/text()")
    private String jiWanJBSMS;

    /**
     * 既往疾病种类代码
     */
    @XPath(path = "/entry/observation/code[@code='DE02.10.033.00']/../value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_10_033_00))
    private CodeObject jiWangJBZLDM;
}
